package com.ruoyi.web.controller.mall.goodsTypeSpec.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.web.controller.mall.goodsSpec.domain.GoodsSpec;
import com.ruoyi.web.controller.mall.goodsTypeSpecValues.domain.GoodsTypeSpecValues;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.util.Date;
import java.util.List;

/**
 * 类型规格关联对象 goods_type_spec
 * 
 * @author ruoyi
 * @date 2021-01-18
 */
public class GoodsTypeSpec //extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 类型ID */
    @Excel(name = "类型ID")
    private String typeId;

    /** 规格ID */
    @Excel(name = "规格ID")
    private String specId;

    /** 排序字段 */
    @Excel(name = "排序字段")
    private Integer location;

    /** 创建用户id */
    @Excel(name = "创建用户id")
    private Long userIdCreate;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtCreate;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtModified;

    /** 删除标记 */
    private Integer delFlag;

    private GoodsSpec spec;

    private List<GoodsTypeSpecValues> specValList;

    public GoodsSpec getSpec() {
        return spec;
    }

    public void setSpec(GoodsSpec spec) {
        this.spec = spec;
    }

    public List<GoodsTypeSpecValues> getSpecValList() {
        return specValList;
    }

    public void setSpecValList(List<GoodsTypeSpecValues> specValList) {
        this.specValList = specValList;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setTypeId(String typeId) 
    {
        this.typeId = typeId;
    }

    public String getTypeId() 
    {
        return typeId;
    }
    public void setSpecId(String specId) 
    {
        this.specId = specId;
    }

    public String getSpecId() 
    {
        return specId;
    }
    public void setLocation(Integer location)
    {
        this.location = location;
    }

    public Integer getLocation()
    {
        return location;
    }
    public void setUserIdCreate(Long userIdCreate) 
    {
        this.userIdCreate = userIdCreate;
    }

    public Long getUserIdCreate() 
    {
        return userIdCreate;
    }
    public void setGmtCreate(Date gmtCreate) 
    {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtCreate() 
    {
        return gmtCreate;
    }
    public void setGmtModified(Date gmtModified) 
    {
        this.gmtModified = gmtModified;
    }

    public Date getGmtModified() 
    {
        return gmtModified;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("typeId", getTypeId())
            .append("specId", getSpecId())
            .append("location", getLocation())
            .append("userIdCreate", getUserIdCreate())
            .append("gmtCreate", getGmtCreate())
            .append("gmtModified", getGmtModified())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
